/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-04-03
 * Time: 0:29
 */
class Cat extends Animal{
    public String name;
    private Cat(String name) {
        this.name = name;
        System.out.println("子类Cat私有构造器调用");
    }

    @Override
    void eat() {
        System.out.println(this.name + "吃猫粮");
    }
}
